<%@page import="com.lb.myeam.core.entity.DepEntity"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>list</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body bgcolor="#FOFOFO">
    <table border="0">
    	<tr>
    		<td align="center" bgcolor="#AOAOAO">id</td>
    		<td align="center" bgcolor="#AOAOAO">account</td>
    		<td align="center" bgcolor="#AOAOAO">password</td>
    		<td align="center" bgcolor="#AOAOAO">name</td>
    		<td align="center" bgcolor="#AOAOAO">操作</td>
    	</tr>
    	<% 
    		List<DepEntity> list=(List<DepEntity>)request.getAttribute("list");
    		for(DepEntity dep:list){
    	%>
    	<tr>
    		
    		<td bgcolor="#EOEOEO"><%=dep.getDepId() %></td>
    		<td><input type="text" name="a" value="<%=dep.getDepAccount() %>"></td> 
    		<td><input type="text" name="b"  value="<%=dep.getDepPassword() %>"></td>
    		<td><input type="text" name="c"  value="<%=dep.getDepName() %>"></td>
    		<td>
    			<a href="servlet/DepServlet?act=doDelete&id=<%=dep.getDepId()%>"><input type="button" value="删除"></a>
    			<a href="crud/update.jsp?id=<%=dep.getDepId()%>&account=<%=dep.getDepAccount()%>&password=<%=dep.getDepPassword() %>&name=<%=dep.getDepName() %>" target="show"><input type="button" value="修改"></a>
    		</td>
    	</tr>
    	<%
    		}
    	%>
    	
    </table>
  </body>
</html>
